package com.syni.mdd.sjb.community.base.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.syni.mdd.sjb.common.component.mybatis.community.entity.SjbQywxAdmin;
import com.syni.mdd.sjb.common.component.mybatis.community.entity.SjbQywxCompanyUser;
import com.syni.mdd.sjb.community.base.entity.bo.CompanyPermanentCodeBo;
import com.syni.mdd.sjb.community.base.entity.bo.LoginInfoBo;
import com.syni.mdd.sjb.community.base.entity.vo.BaseRqVo;
import com.syni.mdd.sjb.community.base.entity.vo.rq.BindSjbAccountVo;
import com.syni.mdd.sjb.community.base.entity.vo.rq.ChooseIndustryVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 数据宝管理员表 服务类
 * </p>
 *
 * @author lcc
 * @since 2021-02-23
 */
public interface SjbQywxAdminService extends IService<SjbQywxAdmin> {

    SjbQywxAdmin getByUserId(String userid);

    SjbQywxAdmin getByCorpIdAndUserId(String userid,String corpId);

    SjbQywxAdmin syncAdminInformation(LoginInfoBo loginInfoBo);

    void syncAdminInformation(CompanyPermanentCodeBo companyPermanentCodeBo);

    SjbQywxAdmin getBySuperAdminByCorpId(String cropId);

    List<SjbQywxAdmin> getByAdminByCorpId(String cropId);

    Map<String, Object> manList(BaseRqVo baseRqVo);

    boolean addCompanyUserToAdmins(List<SjbQywxCompanyUser> companyUsers);

    boolean addCompanyUserToAdmin(SjbQywxCompanyUser companyUser);

    boolean deleteAdmin(Integer adminId);

    Map<String, Object> bindSjbAccount(BindSjbAccountVo bindSjbAccountVo);

    boolean checkPhoneIsBind(String phone, Integer qxwxAdminId);

    Map<String, Object> chooseIndustry(ChooseIndustryVo chooseIndustryVo);

    Map<String, Object> getAllIndustry();
}
